package com.example.school;

import cn.hutool.core.date.DateUtil;

import java.util.ArrayList;
import java.util.List;

public class SchoolMockData {
    public static Student getOneStudent() {
        Student student = new Student();
        student.setAge(18);
        student.setId(1L);
        student.setName("Mary");
        student.setBirthday(DateUtil.parseDate("2000-05-01"));
        return student;
    }

    public static List<Student> getStuentList() {
        List<Student> students = new ArrayList<>();

        Student student = new Student();
        student.setAge(18);
        student.setId(1L);
        student.setName("Mary");
        student.setBirthday(DateUtil.date());
        students.add(student);

        Student student2 = new Student();
        student2.setAge(19);
        student2.setId(2L);
        student2.setBirthday(DateUtil.date());
        student2.setName("Tom");
        students.add(student2);

        return students;
    }

    public static Grade getGrade() {
        Grade grade = new Grade();
        grade.setId(1L);
        grade.setName("Grade 1");
        grade.setStudents(getStuentList());
        return grade;
    }
}
